import request from '@/utils/request'

// 查询管理清单列表
export function listQuestions(query) {
  return request({
    url: '/quality/questions/list',
    method: 'get',
    params: query
  })
}

// 查询管理清单详细
export function getQuestions(id) {
  return request({
    url: '/quality/questions/' + id,
    method: 'get'
  })
}

// 新增管理清单
export function addQuestions(data) {
  return request({
    url: '/quality/questions',
    method: 'post',
    data: data
  })
}

// 修改管理清单
export function updateQuestions(data) {
  return request({
    url: '/quality/questions',
    method: 'put',
    data: data
  })
}

// 删除管理清单
export function delQuestions(id) {
  return request({
    url: '/quality/questions/' + id,
    method: 'delete'
  })
}


//查询施工规范列表
export function getListData(query) {
  return request({
    url: '/quality/constructionFile/list',
    method: 'get',
    params: query
  })
}
//详情
export function getQuestionsData(id) {
  return request({
    url: '/quality/constructionFile/'+id,
    method: 'get',
  })
}
//新增提交
export function addData(data) {
  return request({
    url: '/quality/constructionFile',
    method: 'post',
    data: data
  })
}
//修改
export function updateData(data) {
  return request({
    url: '/quality/constructionFile',
    method: 'put',
    data: data
  })
}
//删除
export function delData(id) {
  return request({
    url: '/quality/constructionFile/' + id,
    method: 'delete'
  })
}